

package com.qiyu.mq.core.annotation;

import com.qiyu.mq.core.serializer.FastJsonSerializer;
import com.qiyu.mq.core.serializer.Serializer;
import org.springframework.stereotype.Component;

import java.lang.annotation.*;

/**
 * @author  idea
 * @version V1.0
 * @date 2020/8/10
 */
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Component
public @interface MqProvider {

    String topic() default "";

    String tag() default "";

    Class<? extends Serializer> serializer() default FastJsonSerializer.class;;
}
